package com.tqjc.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tqjc.system.core.annotation.QueryField;
import com.tqjc.system.core.model.QueryCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 钢板信息实体类
 * @author: pzy
 * @date: 2023年05月18日 11:05
 */
@TableName(value = "steel_plate")
@Data
@DS("xianggang")
@Schema(description = "钢板基本信息")
public class SteelPlate extends Model implements Serializable, Cloneable {
    /**
     * 钢板主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private String id;
    /**
     * 钢板号
     */
    @Schema(description = "钢板号")
    private String steelId;
    /**
     * 钢板长度
     */
    @Schema(description = "钢板长度")
    private Integer length;
    /**
     * 钢板宽度
     */
    @Schema(description = "钢板宽度")
    private Integer width;
    /**
     * 钢板厚度
     */
    @Schema(description = "钢板厚度")
    private Integer thickness;
    /**
     * 钢板型号
     */
    @Schema(description = "钢板型号")
    private String steelType;
    /**
     * 钢板重量
     */
    @Schema(description = "钢板重量")
    private Integer weight;
    /**
     * 所属层数
     */
    @Schema(description = "所属层数")
    private Integer tier;
    /**
     * 钢板所属区域
     */
    @Schema(description = "钢板所属垛位id")
    private Integer stockId;

    @Schema(description = "所属上级钢板层id")
    @QueryField(queryColumn="parent_id", condition= QueryCondition.eq)
    private Integer parentId;

    /**
     * 钢板所属区域类型
     */
    @Schema(description = "钢板所属区域")
    @TableField(exist = false)
    private String areaType;

    /**
     * 钢板所属区域id
     */
    @Schema(description = "钢板区域id")
    @TableField(exist = false)
    private String areaId;
}

